/**
 * 
 */
package tests;

import static org.junit.Assert.*;

import javax.naming.Context;
import javax.naming.InitialContext;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import dao.UserManager;

/**
 * @author LYM
 *
 */
public class UserManagerBeanTest {
	
	UserManager users=null;

	/**
	 * @throws java.lang.Exception
	 */
	@Before
	public void setUp() throws Exception {
		Context context = new InitialContext(); 
		users= (UserManager) context.lookup("UserManagerBean/remote");
		users.removeAll();
	}

	/**
	 * @throws java.lang.Exception
	 */
	@After
	public void tearDown() throws Exception {
	}

	/**
	 * Test method for {@link dao.UserManagerBean#addUser(entites.WebUser)}.
	 */
	@Test
	public void testAddUser() {
		fail("Not yet implemented");
	}

	/**
	 * Test method for {@link dao.UserManagerBean#updateUser(int, entites.WebUser)}.
	 */
	@Test
	public void testUpdateUserIntWebUser() {
		fail("Not yet implemented");
	}

	/**
	 * Test method for {@link dao.UserManagerBean#updateUser(java.lang.String, entites.WebUser)}.
	 */
	@Test
	public void testUpdateUserStringWebUser() {
		fail("Not yet implemented");
	}

	/**
	 * Test method for {@link dao.UserManagerBean#getUser(int)}.
	 */
	@Test
	public void testGetUserInt() {
		fail("Not yet implemented");
	}

	/**
	 * Test method for {@link dao.UserManagerBean#getUser(java.lang.String)}.
	 */
	@Test
	public void testGetUserString() {
		fail("Not yet implemented");
	}

	/**
	 * Test method for {@link dao.UserManagerBean#getAllUsers()}.
	 */
	@Test
	public void testGetAllUsers() {
		fail("Not yet implemented");
	}

	/**
	 * Test method for {@link dao.UserManagerBean#delUser(int)}.
	 */
	@Test
	public void testDelUserInt() {
		fail("Not yet implemented");
	}

	/**
	 * Test method for {@link dao.UserManagerBean#delUser(java.lang.String)}.
	 */
	@Test
	public void testDelUserString() {
		fail("Not yet implemented");
	}

}
